# -*-encoding: utf-8 -*-

from utils.terms.Term_Info import Term_Info
from utils.terms.Termid_List import Termid_List
from utils.logger.LLogger import logger

import sys 
reload(sys) 
sys.setdefaultencoding('utf-8')

if __name__ == "__main__":
    mTermInfo = "/root/.csmetrics/term_info.txt"
    mTermidList = "/root/.csmetrics/termid_list.txt"
    mTermSize = Term_Info(mTermInfo).getTermSize()
    logger.info("mTermSize: %d" % (mTermSize))
    l = Termid_List(mTermidList, mTermSize)
    l.calculateMatrix()
